/**
 * Created by pankajmishra on 08/12/14.
 */
define(['jquery'], function($){

    return {

        isStrEmpty : function(val){
            return typeof val === 'undefined' || val === null || val.trim().length == 0;
        },
        getStrOrNull : function(val) {
            this.isStrEmpty(val) ? null : val.trim();
        }


    }

});